import request from "@/utils/serviceApiH2";

/* 投诉建议 */

// 投诉建议列表查询
export function selProposalListApi(params) {
  return request({
    url: "/apiH2/admin/proposal/selProposalList",
    method: "GET",
    params,
  });
}

// 删除投诉建议
export function delProposalByIdsApi(data) {
  return request({
    url: "/apiH2/admin/proposal/delProposalByIds",
    method: "DELETE",
    data,
  });
}

// 处理投诉建议
export function updateStatusByIdsApi(ids, status) {
  return request({
    url: "/apiH2/admin/proposal/updateStatusByIds",
    method: "PUT",
    data: ids,
    params: {
      status: parseInt(status),
    },
  });
}

// 处理举报信息
export function updateReportStatusByIdsApi(ids, status) {
  return request({
    url: "/apiH2/admin/proposal/updateReportStatusByIds",
    method: "PUT",
    data: ids,
    params: {
      status: parseInt(status),
    },
  });
}

// 举报信息列表查询
export function selReportListApi(params) {
  return request({
    url: "/apiH2/admin/proposal/selReportList",
    method: "GET",
    params,
  });
}

// 删除举报信息
export function delReportByIdsApi(data) {
  return request({
    url: "/apiH2/admin/proposal/delReportByIds",
    method: "DELETE",
    data,
  });
}
